package org.sixtynine.stock.dao.impl;

/**
 * @author Thilan
 *
 */

import java.util.List;

import org.sixtynine.stock.dao.PaymentConfigDao;
import org.sixtynine.stock.entity.PaymentConfig;
import org.springframework.stereotype.Repository;

@Repository
public class PaymentConfigDaoImpl extends
		AbstractDaoImpl<PaymentConfig, Integer> implements PaymentConfigDao {

	protected PaymentConfigDaoImpl() {
		super(PaymentConfig.class);
	}

	@Override
	public void savePaymentConfig(PaymentConfig paymentConfig) {
		saveOrUpdate(paymentConfig);
	}

	@Override
	public List<PaymentConfig> findPaymentConfig() {
		return findAll(PaymentConfig.class);
	}

}
